body{
 background: linear-gradient(to right, #1f2a44, #5c5c5c);
  min-height: 100vh; /* ocupa todo el alto de la pantalla */
  background-repeat: no-repeat;
  background-attachment: fixed; /* Opcional, da efecto estático */
  background-size: cover;
}
 header{
display: flex;
justify-content: space-between;
margin-top: 50px;
}  
.logo{
    display: flex;
    align-items: center;
}  
h1{
    font-size: 50px;
    font-family: fantasy;
}
.logo img{
    width: 100px;
    height: 100px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 50%;
}
nav{
     display: flex;
  justify-content: space-around;
  flex-wrap: wrap; /* Permite que los links salten de línea si es necesario */
}
a{
    text-decoration: none;
    padding: 10px;
    color: white;
}
p{
    color: white;
}
.tarjeta{
    margin: auto;
    text-align: center;

}
img{
    width: 400px;
    height: 500px;
    margin: auto;
    max-width: 100%;
}
@media (max-width:600px) {
    header 
    {
      width: 100%;
        padding: 10px;
        margin: 0 auto;
        display: block;
        text-align: center;  
    }
    .tarjeta {
        width: 100%;
        padding: 10px;
        margin: 0 auto;
        display: block;
        text-align: center;
    }
 nav {
    flex-direction: column; /* Apila los links en columna */
    align-items: center;    /* Centra el contenido */
    gap: 10px;              /* Espacio entre links */
  }

  nav a {
    display: block;
    width: 100%;
    text-align: center;
  }

}
